const User = require("../model/use.model");
const Goods = require("../model/goods.model")
const {where} = require("sequelize");

class GoodsServer {
    async createGoods(body) {
        const res = await Goods.create(body)
        return res.dataValues
    }

    async allGoods() {
        const res = await Goods.findAll(
            // {where:{id:1}}
        )
        console.log(res.count())
        return res
    }
}

module.exports = new GoodsServer()